package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;

/**
 * 日志实体类
 */
@TableName("t_log")
public class LogBean {
    /**日志编号*/
    @TableId(value = "pk_logId",type = IdType.AUTO)
    private Integer logId;
    /**日期*/
    @TableField("l_date")
    private LocalDate date=LocalDate.now();
    /**内容*/
    @TableField("l_content")
    private String content;

    public LogBean() {
    }

    public LogBean(String content) {
        this.content = content;
    }

    public Integer getLogId() {
        return logId;
    }

    public void setLogId(Integer logId) {
        this.logId = logId;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "LogBean{" +
                "logId=" + logId +
                ", date=" + date +
                ", content='" + content + '\'' +
                "}\n";
    }
}
